package com.xiaohong.order.fallback;

import com.xiaohong.order.feign.OrderTblFeign;
import com.xiaohong.order.pojo.OrderTbl;
import entity.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author : xiaohong
 * @date : 2021/4/4 18:36
 */
@Component
public class OrderFallback implements OrderTblFeign {
    @Override
    public Result delete(Integer id) {
        return null;
    }

    @Override
    public Result update(OrderTbl orderTbl, Integer id) {
        return null;
    }

    @Override
    public Result add(OrderTbl orderTbl) {
        System.out.println("数据:"+ orderTbl);
        throw new RuntimeException("order错误，错误日志已保存数据库了哦");
    }

    @Override
    public Result<OrderTbl> findById(Integer id) {
        return null;
    }

    @Override
    public Result<List<OrderTbl>> findList(OrderTbl orderTbl) {
        return null;
    }
}
